#ifndef LOG_H
#define LOG_H

#include <fstream>
#include "globals.hh"
#include "G4UserTrackingAction.hh"
#include "G4UserRunAction.hh"
#include "G4Step.hh"

using namespace std;
class G4Timer;
class G4Run;
class G4UserRunAction;

class Log //: public G4UserRunAction//, public G4UserTrackingAction 
{
	public:
	  Log();
	  ~Log();
	  friend class MRunAction;
	
	public:
	  //void Writing(const G4Run* aRun);
	  void BeginOfRunAction(const G4Run* aRun);
	  //void Writing();
	  
//	  virtual void UserRunAction(const G4Step*);
//	  virtual void UserTrackingAction(const G4Step*);
	
	private: 
	  int logNum;
	  G4Timer* timer;
	  const G4Run* aRun;
	  fstream logfile;
	  fstream loginfo;
};

#endif
